//
//  QWebVCViewController.m
//  ZhiJianKe
//
//  Created by 吴志强 on 2018/9/27.
//  Copyright © 2018年 Wuzhiqiang. All rights reserved.
//

#import "QWebVC.h"

@interface QWebVC ()<UINavigationControllerDelegate>

@end

@implementation QWebVC

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];

    if (!self.showNavBar) {
        [self.navigationController setNavigationBarHidden:YES animated:YES];
    }
    else{
        [self.navigationController setNavigationBarHidden:NO animated:YES];
    }
}

- (void) viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];

    if (!self.showNavBar) {
        [self.navigationController setNavigationBarHidden:YES animated:YES];
    }
    else {
        [self.navigationController setNavigationBarHidden:NO animated:YES];
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self loadRequestURLString:self.urlString];

    self.disableIndicator = YES;
}

- (void) setview
{
//    self.view.top = Height_NavBar;
//    self.webView.top = Height_NavBar;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void) action
{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
